<?php

namespace Models;

class Documents extends \Phalcon\Mvc\Model
{

    /**
     *
     * @var integer
     */
    public $id;

    /**
     *
     * @var integer
     */
    public $doctype_id;

    /**
     *
     * @var integer
     */
    public $topic_id;

    /**
     *
     * @var string
     */
    public $title;

    /**
     *
     * @var string
     */
    public $description;

    /**
     *
     * @var integer
     */
    public $uploadby;

    /**
     *
     * @var string
     */
    public $submit_date;

    /**
     *
     * @var string
     */
    public $cost;

    /**
     *
     * @var string
     */
    public $link;

    /**
     *
     * @var string
     */
    public $review;

    /**
     *
     * @var string
     */
    public $image;

    /**
     *
     * @var integer
     */
    public $download;

    /**
     *
     * @var double
     */
    public $discount;

    /**
     *
     * @var integer
     */
    public $updateby;

    /**
     *
     * @var string
     */
    public $updatetime;

    /**
     *
     * @var integer
     */
    public $public;

    /**
     * Independent Column Mapping.
     */
    public function columnMap()
    {
        return array(
            'id' => 'id', 
            'doctype_id' => 'doctype_id', 
            'topic_id' => 'topic_id', 
            'title' => 'title', 
            'description' => 'description', 
            'uploadby' => 'uploadby', 
            'submit_date' => 'submit_date', 
            'cost' => 'cost', 
            'link' => 'link', 
            'review' => 'review', 
            'image' => 'image', 
            'download' => 'download', 
            'discount' => 'discount', 
            'updateby' => 'updateby', 
            'updatetime' => 'updatetime', 
            'public' => 'public'
        );
    }

}
